/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const bookRouter = {
  path: '/book',
  component: Layout,
  redirect: '/book/book_info',
  name: '书籍信息',
  meta: {title: '书籍信息', icon: 'system', role: 'ADMIN'},
  children: [
    {
      path: '/book/book_info',
      name: '图书信息',
      component: () => import('@/views/book/book_info'),
      meta: {title: '图书信息', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/book/author_info',
      name: '作者信息',
      component: () => import('@/views/book/author_info'),
      meta: {title: '作者信息', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/book/series_info',
      name: '丛书信息',
      component: () => import('@/views/book/series_info'),
      meta: {title: '丛书信息', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/book/producer_info',
      name: '出品方信息',
      component: () => import('@/views/book/producer_info'),
      meta: {title: '出品方信息', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/book/book_type_relation',
      name: '图书类型关联',
      component: () => import('@/views/book/book_type_relation'),
      meta: {title: '图书类型关联', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/book/book_expand',
      name: '图书扩展',
      component: () => import('@/views/book/book_expand'),
      meta: {title: '图书扩展', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/book/book_section',
      name: '图书章节',
      component: () => import('@/views/book/book_section'),
      meta: {title: '图书章节', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/book/book_type',
      name: '图书类型',
      component: () => import('@/views/book/book_type'),
      meta: {title: '图书类型', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/book/book_type_occupation_weight',
      name: '图书类型与职业关系',
      component: () => import('@/views/book/book_type_occupation_weight'),
      meta: {title: '图书类型与职业关系', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/book/book_recommend',
      name: '图书榜单推荐',
      component: () => import('@/views/book/book_recommend'),
      meta: {title: '图书榜单推荐', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/book/book_recommend_item',
      name: '图书榜单推荐清单',
      component: () => import('@/views/book/book_recommend_item'),
      meta: {title: '图书榜单推荐清单', icon: 'tree', role: 'ADMIN'},
    }
  ]
}

export default bookRouter

